<?php
 
class DisplayHandler extends CI_Model {
	public function getAllShows(){
		$this->load->model('showDAL');
    	$shows = $this->showDAL->getAllShows();
    	return $shows;
	}
	public function getAllPersons(){
		$this->load->model('showDAL');
    	$persons = $this->showDAL->getAllPersons();
    	return $persons;
	}
	public function getPersonByID($personID){
		$this->load->model('showDAL');
    	$person = $this->showDAL->getPersonById($personID);
    	return $person;
	}
	public function getShowByID($showID){
		$this->load->model('showDAL');
    	$show = $this->showDAL->getShowByID($showID);
    	return $show;
	}
	public function getCrewByShowID($showID){
		$this->load->model('showDAL');
		$crew = $this->showDAL->getCrewByShowID($showID);
		return $crew;
	}
	public function getCastByShowID($showID){
		$this->load->model('showDAL');
		$cast = $this->showDAL->getCastByShowID($showID);
		return $cast;
	}
	public function getShowsByPersonID($personID){
		$this->load->model('showDAL');
    	$show = $this->showDAL->getShowsByPersonID($personID);
    	return $show;
	}
	public function getActingJobs($personID){
		$this->load->model('showDAL');
		$shows = $this->showDAL->getActingJobs($personID);
    	return $shows;
	}
	public function getCrewJobs($personID){
		$this->load->model('showDAL');
		$shows = $this->showDAL->getCrewJobs($personID);
    	return $shows;
	}
}